<?php
namespace app\index\controller;
use think\Db;
class Apps extends Base{
    public function apps(){
    	$apps_banner=Db::name('apps_banner')->where('id',1)->find();
        $apps_customizations_title=Db::name('apps_customizations_title')->where('id',1)->find();
        $apps_customizations=Db::name('apps_customizations')->order('sort desc')->select();
        $apps_solutions_title=Db::name('apps_solutions_title')->where('id',1)->find();
        $apps_solutions=Db::name('apps_solutions')->order('sort desc')->select();
        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $cases=Db::name('cases')->where('type',3)->order('sort desc')->limit(6)->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('apps_banner',$apps_banner);
        $this->assign('apps_customizations_title',$apps_customizations_title);
        $this->assign('apps_customizations',$apps_customizations);
        $this->assign('tmdurl',$this->request->domain());
        $this->assign('others',$others);
        $this->assign('apps_solutions_title',$apps_solutions_title);
        $this->assign('apps_solutions',$apps_solutions);
        $this->assign('headquarters_branches',$headquarters_branches);
        $this->assign('cases',$cases);
        return $this->fetch();
    }
}
